{%include file="header.html" %} 
       
		  <style>
		#mblog_pic_map{
			float:left;
			width:650px;
			margin:8px;
		}
		#mblog_pic_map div{
			background-color:#ccc;
			margin:0px 2px 5px 0px;
			padding:0;
			float:left;
			width:90px;
			height:90px;
			text-align:center;
			
			
		}
		#mblog_pic_map div a{
		
			display:block;
		}
		#mblog_pic_map img{
			margin:1px;
			height:80px;
			width: 80px; 
			border:1px solid;
		}
		</style>
		<div id="page" class="view">
             {%include file="top.html" %} 
           {%include file="shadow.html" %} 
            
            <div class="wfx">
               
                <div class="CloseupRight">
                    <div class="wt clearfix">
						<div id="PinPinner">
					  {%$g_show.daohang%}
					  </div>

                        <div id="PinPinner">
                            <a class="img" href="/meinv/user_{%$g_show.item.create_uid%}.html" id="PinnerImage">
                                <img alt=" {%$g_show.item.create_nickname%}" src="{%$g_show.item.head_url%}">
                            </a>
                            <p id="PinnerName">
                                <a href="/meinv/user_{%$g_show.item.create_uid%}.html">
                                    {%$g_show.item.create_nickname%}
                                </a>
                            </p>
                            <p class="less" id="PinnerStats">
                                发表于&nbsp;
                                <span class="ts-words">
                                    {%$g_show.item.create_time%} 

                                </span>
							
							 <span id="pin_source" class="light">
								来自
								{%$g_show.item.source%}
								</span>
                            </p>

                        </div>
                        <div id="mblog_pic_map" {%if $isMobile eq true%} style="width:950px;"{%/if%}>
						 
                            <p id="PinnerName">
                                最近的其他分享
                            </p>
                           

						{%section name=count loop=$g_show.small_list%}
						<div {%if $isMobile eq true%} style="width:130px;"{%/if%}> <a href="/meinv/detail_{%$g_show.small_list[count].id%}.html"> <img  title="{%$g_show.small_list[count].content%}" src="{%$g_show.small_list[count].pic_small%}"></a></div>
						{%/section%}


						<div {%if $isMobile eq true%} style="width:130px;"{%/if%}><img style="opacity:0.5;border:3px solid;color:red;" src="{%$g_show.item.pic_small%}" >
						</div>
                         {%section name=count loop=$g_show.big_list%}
						 <div {%if $isMobile eq true%} style="width:130px;"{%/if%}> <a href="/meinv/detail_{%$g_show.big_list[count].id%}.html"> <img    alt="{%$g_show.big_list[count].content%}" title="{%$g_show.big_list[count].content%}" src="{%$g_show.big_list[count].pic_small%}"></a></div>
						{%/section%}

						  </div>
							
							
                        <div style="display:block" id="PinActionButtons">

							<ul class="actions" style="float:right;">
                                <li class="like-button">
                                    <a class="like btn wbtn  "  target="_blank" href="{%$g_show.item.big_pic%}" title="原图">
                                        <strong>
                                            <em>
                                            </em>
                                            原图
                                        </strong>
                                        <span>
                                        </span>
                                    </a>
                                </li>
                            </ul>
                        </div>
                        <div class="pin-img" data-orig-source="null" data-media-type="0" data-id="16777072"
                        id="pin_img">
                            <img  data-type="image/jpeg" 
                            src="{%$g_show.item.mw690_pic%}" alt="{%$g_show.item.content%}" {%if $isMobile eq true%} style="width:900px;max-width:900px;"{%/if%}>
							<div id="efpLeftArea" class="arrLeft"  href="{%$g_show.prev%}" title="点击浏览上一张"></div>
							<div id="efpRightArea" class="arrRight"  href="{%$g_show.next%}"  title="点击浏览下一张"></div>
                   
                            </a>
                        </div>
                        <div class="pin-caption" id="pin_caption">
                            <p class="text" {%if $isMobile eq true%} style="font-size:30px;"{%/if%}>
                                {%$g_show.item.content%} 
                                <br>
                            </p>
                            <p class="via less">
                            </p>
                            
                        </div>
                       

				

					<div id="pin_toolbar_detail"><ul><li><div class="PriorAndNext"><a class="prev  x self" title="上一张" {%if $g_show.prev%} href="{%$g_show.prev%}"{%else%}onclick="alert('这已经是最早一页了')"{%/if%}></a><a class="next  x self" title="下一张" {%if $g_show.next%}href="{%$g_show.next%}" {%else%}onclick="alert('这已经是最新一页了')"{%/if%}></a></div>
					</ul></div>

                </div>
            </div>
             <div class="CloseupLeft">
                    {%include file="right.html" %} 
                </div>
        </div>
        <div class="clear">
        </div>
       
		{%include file="footer_js.html" %}    

		<script>

$(function(){
	$(".detail_add_like").bind("click",function(e){
				
				id = $(this).attr("data-id");
				
				$.getJSON("/interface/user/json_add_like_to_mblog.php?id="+id+"&t=jsonp&callback=?", function(json){
				
					if(typeof(json)!='undefined')
					{
						
						if(json.error == 0)
						{
							var num = parseInt($(e.target).parents(".favorite").find(".count_love_num").text())+1;
						
							$(e.target).parents(".favorite").find(".count_love_num").text(num)
							YOUXIXIU.MAIN.Tips.Show(json.errmsg);
								
						}
						else
						{
							YOUXIXIU.MAIN.Tips.Show(json.errmsg);
						}
						
					}
					
				});


					
			});


	$("#PostComment").die("click");
		$("#PostComment").live("click",function(e){
			var id = "{%$g_show.id%}";
			var content = $("#CloseupComment").val();
			content = encodeURIComponent(content);
			$.getJSON("/interface/mblog/json_add_mblog_reply.php?t=jsonp&id="+id+"&content="+content+"&callback=?", function(json){
			if(typeof(json)!='undefined')
			{

				if(json.error == 1)
				{
					YOUXIXIU.MAIN.Tips.Show(json.errmsg);
				}
				else
				{
				
					YOUXIXIU.MAIN.Tips.Show(json.errmsg);
					location.reload();
					
						
				}
				

				
			}
			
			
				
		});

		
	});


	$(".pinViewReplyButton").bind("click",function(e){

		var nick = "回复@"+ $(e.target).attr("data-name")+":";
		$("#CloseupComment").val(nick);
		
	})

	$(".DeleteComment").bind("click",function(e){
		
			var parent = $(this).parents(".comment");
			var id = parent.attr("data-id");
		
			$.getJSON("/interface/mblog/json_add_mblog_reply.php?t=jsonp&type=del&id="+id+"&callback=?", function(json){
			if(typeof(json)!='undefined')
			{

				if(json.error == 1)
				{
					YOUXIXIU.MAIN.Tips.Show(json.errmsg);
				}
				else
				{
				
					YOUXIXIU.MAIN.Tips.Show(json.errmsg);
					parent.hide();
					
						
				}
				

				
			}
			
			
		
			});
		});


		
	$("#efpLeftArea").bind("click",function(e){
	
		if($(e.target).attr("href"))
		{
			location.href=$(e.target).attr("href");
		}
		else
		{
			alert("本页已经是最老的内容了")
		}
	});

	$("#efpRightArea").bind("click",function(e){
		
		if($(e.target).attr("href"))
		{
			location.href=$(e.target).attr("href");
		}
		else
		{
			alert("本页已经是最新的内容了")
		}
	});



});
		


</script>

<!-- 将此代码放在适当的位置，建议在body结束前 -->
<script id="bdimgshare_shell"></script>
<script>
var bdShare_config_imgshare = {
	"type":"list"
	,"size":"big"
	,"pos":"top"
	,"color":"black"
	,"list":["qzone","tsina","tqq","renren","t163"]
	,"uid":"1630786",
	'bdText':'{%$g_show.item.content_no_url%}'
};
document.getElementById("bdimgshare_shell").src="http://bdimg.share.baidu.com/static/js/imgshare_shell.js?cdnversion=" + Math.ceil(new Date()/3600000);
</script>

  {%include file="footer.html" %} 